<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysVehicleRateTmpBean.id}"/>
		<f:event type="preRenderView" listener="#{sysVehicleRateTmpBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Vehicle Rate Tmp"/>

	<ui:define name="header">
		Sys Vehicle Rate Tmp
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysVehicleRateTmpBean.id}">
				Edit existing Sys Vehicle Rate Tmp
			</c:when>
			<c:otherwise>
				Create a new Sys Vehicle Rate Tmp
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpSysVehicleType" value="Sys Vehicle Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysVehicleTypeBean.converter}" id="sysVehicleRateTmpBeanSysVehicleRateTmpSysVehicleType" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.sysVehicleType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpSysVehicleType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleSubtypeNo" value="Vehicle Subtype No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleSubtypeNo" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleSubtypeNo}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleSubtypeNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleBrandNo" value="Vehicle Brand No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleBrandNo" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleBrandNo}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleBrandNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleColorNo" value="Vehicle Color No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleColorNo" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleColorNo}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleColorNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleModelCode" value="Vehicle Model Code:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleModelCode" maxLength="100" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleModelCode}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleModelCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleNumber" value="Vehicle Number:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleNumber" maxLength="50" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleNumber}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleNumber" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleGearTypeNo" value="Vehicle Gear Type No:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleGearTypeNo" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.vehicleGearTypeNo}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpVehicleGearTypeNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpSalePrice" value="Sale Price:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpSalePrice" maxLength="50" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.salePrice}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpSalePrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpDetail" value="Detail:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpDetail" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.detail}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpDetail" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpOver" value="Over:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpOver" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.over}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpOver" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysVehicleRateTmpBeanSysVehicleRateTmpLoanAllowRatePerc" value="Loan Allow Rate Perc:"/>
				<h:panelGroup>
					<h:inputText id="sysVehicleRateTmpBeanSysVehicleRateTmpLoanAllowRatePerc" value="#{sysVehicleRateTmpBean.sysVehicleRateTmp.loanAllowRatePerc}"/>
					<h:message for="sysVehicleRateTmpBeanSysVehicleRateTmpLoanAllowRatePerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysVehicleRateTmpBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysVehicleRateTmpBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysVehicleRateTmpBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysVehicleRateTmpBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>